#学生信息管理模块
#项目经理更新

CC = gcc
CFLAGS = -I../Include -Wall
MODE ?= FILE

SOURCES = student.c
OBJECTS = $(SOURCES:.c=.o)

#根据模式添加宏定义
ifeq ($(MODE), FILE)
	CFLAGS += -DINPUT_MODE_FILE
else
	CFLAGS += -DINPUT_MODE_CLI
endif

.PHONY: all clean

all: $(OBJECTS)

%.o : %.c
	$(CC) $(CFLAGS) -c $< -o $@
clean:
	$(RM) $(OBJECTS)
